#pragma once
#include "queue.h"
#include <string>
using namespace std;
template<typename T>
class BankWidget {
private:
	Queue<T>q;
	string currentNum;
	int FinishTime;
	int numInQueue;
public:
	BankWidget() {
		FinishTime = 0;
		currentNum = "0000";
	}
	string& getCurNum();
	int& FinTime();
	int& setNumInQu();
	int numInQu();
	Queue<T>& getQueue();
};
// 获取队列
template<typename T>
Queue<T>& BankWidget<T>::getQueue() {
	return this->q;
}
// 获取窗口编号
template<typename T>
string& BankWidget<T>::getCurNum() {
	return this->currentNum;
}
// 窗口排队的数量
template<typename T>
int BankWidget<T>::numInQu() {
	return this->q.getSize();
}
// 获取引用
template<typename T>
int& BankWidget<T>::setNumInQu() {
	return this->numInQueue;
}
// 获取最终的时间
template<typename T>
int& BankWidget<T>::FinTime() {
	return this->FinishTime;
}
